:host {
  width: 996px;
  margin: 24px auto 0;
  display: block;
  padding: 0 8px;
}

.left-nav-container {
  width: 233px;
  padding: 0 8px;
  display: inline-block;
  vertical-align: top;
}

nav.menu {
  border: 1px solid rgb(216, 222, 228);
  border-bottom: none;
  border-radius: 6px;
  width: 231px;
  margin-bottom: 16px;

  .menu-item {
    display: block;
    text-decoration: none;
    border-bottom: 1px solid rgb(216, 222, 228);
    padding: 8px 16px;
    color: rgb(36, 41, 47);

    &.selected {
      position: relative;

      &:before {
        background-color: rgb(253, 140, 115);
        bottom: 0;
        content: "";
        left: 0;
        position: absolute;
        top: 0;
        width: 2px;
      }
    }

    span {
      float: right;
      font-size: 12px;
      font-weight: 500;
      border-radius: 24px;
      border: 1px solid rgb(110, 119, 129);
      background-color: rgb(110, 119, 129);
      margin-left: 4;
      padding: 0 6px;
      color: white;
    }
  }
}

.languages {
  border: 1px solid rgb(216, 222, 228);
  border-radius: 6px;
  width: 199px;
  margin-bottom: 16px;
  padding: 16px;

  h2 {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 8px;
  }

  ul {
    padding: 0;
    margin: 0;
    list-style: none;

    li {
      *:hover {
        background-color: rgb(246, 248, 250);
      }
    }
  }

  a {
    text-decoration: none;
    display: block;
    color: rgb(87, 96, 106);
    font-size: 12px;
    padding: 6px 12px;
    margin-bottom: 4px;
  }

  span {
    float: right;
    font-weight: 600;
  }
}

.nav-link-container {
  margin-top: 16px;
  font-size: 12px;

  a {
    color: rgb(9, 105, 218);
    text-decoration: none;

    &:hover {
      text-decoration: underline;
    }

    &:nth-child(2) {
      margin-left: 16px;
    }
  }
}

.codesearch-results {
  display: inline-block;
  width: 715px;
  padding: 0 16px;
  vertical-align: top;
}

.codesearch-header {
  padding-bottom: 16px;
  display: flex; //
  justify-content: space-between;
  border-bottom: 1px solid rgb(208, 215, 222);

  h3 {
    font-weight: 600;
    font-size: 20px;
    color: rgb(36, 41, 47);
    margin: 0;
  }

  details {
    font-size: 14px;
    border: 1px solid rgba(27, 31, 36, 0.15);
    border-radius: 6px;
    background-color: rgb(246, 248, 250);
    padding: 3px 12px;
    cursor: pointer;
    line-height: 21px;

    &:hover {
      background-color: rgb(243, 244, 246);
    }

    summary {
      list-style: none;
      line-height: 20px;
    }

    i {
      opacity: .75;
      font-size: 12px;
      font-style: normal;
      font-weight: 500;
      color: rgb(36, 41, 47);
    }

    span {
      font-size: 12px;
      font-weight: 500;
    }
  }

  .select-menu-button:after {
    border: 4px solid transparent;
    border-top-color: currentcolor;
    content: "";
    display: inline-block;
    height: 0;
    vertical-align: -2px;
    width: 0;
  }
}

.repo-list {
  margin: 0;
  padding: 0;
  list-style: none;

  li {
    padding: 24px 0;
    border-top: 1px solid rgb(208, 215, 222);
    display: flex;

    &:nth-child(1) {
      border-top: none;
    }

    .svg-icon {
      margin-right: 8px;
      flex-shrink: 0;
    }

    em {
      font-size: 16px;
      font-weight: 600;
      text-decoration: none;
      font-style: normal;
    }

    a {
      color: rgb(9, 105, 218);
    }

    a.Link--muted {
      color: rgb(87, 96, 106);
    }
  }

  a {
    text-decoration: none;
  }
}

.repository-item {
  display: flex;
  font-size: 12px;
  color: rgb(87, 96, 106);

  .mr-3 {
    margin-right: 16px;
  }
}

.repo-language-color {
  border: 1px solid rgba(27, 31, 36, 0.1);
  border-radius: 50%;
  display: inline-block;
  height: 12px;
  position: relative;
  top: 1px;
  width: 12px;
  box-sizing: border-box;
  margin-right: 3.5px;
}

.topic-tag-link {
  text-decoration: none;
  border: 1px solid rgba(0, 0, 0, 0);
  margin-bottom: 4px;
  padding: 0 8px;
  color: rgb(9, 105, 218);
  background-color: rgb(221, 244, 255);
  border-radius: 24px;
  font-size: 12px;
  font-weight: 500;
  line-height: 22px;
  display: inline-block;
  margin-right: 4px;


  &:hover {

    background-color: rgba(84, 174, 255, 0.4)
  }
}

.mb-1 {
  margin-bottom: 4px;
}

.octicon {
  fill: currentColor;
  display: inline-block;
  overflow: visible !important;
  vertical-align: text-bottom;
}

.rep-link {
  font-size: 16px;
  font-weight: 600px;
  line-height: 20px;

  &:hover {
    text-decoration: underline !important;
  }
}


.paginate-container {
  margin: 16px 0;
  text-align: center;

  .pagination {
    display: inline-block;

    .current {
      background-color: rgb(9, 105, 218);
      border-color: transparent;
      color: rgb(255, 255, 255);
    }

  }

  a {
    display: inline-block;
  }

  a,
  em,
  span {
    box-sizing: border-box;
    color: rgb(36, 41, 47);
    border: 1px solid transparent;
    border-radius: 6px;
    cursor: pointer;
    font-style: normal;
    line-height: 20px;
    min-width: 32px;
    padding: 5px 10px;
    text-align: center;
    transition: border-color .2s cubic-bezier(.3, 0, .5, 1);
    user-select: none;
    vertical-align: middle;
    white-space: nowrap;
    text-decoration: none;
    margin-right: 4px;

    &:hover {
      border-color: rgb(208, 215, 222);
      outline: 0;
      text-decoration: none;
      transition-duration: .1s;
    }
  }

  .previous_page,
  .next_page {
    color: rgb(9, 105, 218);
  }

  .previous_page:before {
    clip-path: polygon(9.8px 12.8px, 8.7px 12.8px, 4.5px 8.5px, 4.5px 7.5px, 8.7px 3.2px, 9.8px 4.3px, 6.1px 8px, 9.8px 11.7px, 9.8px 12.8px);
    margin-right: 4px;
  }

  .next_page:after {
    clip-path: polygon(6.2px 3.2px, 7.3px 3.2px, 11.5px 7.5px, 11.5px 8.5px, 7.3px 12.8px, 6.2px 11.7px, 9.9px 8px, 6.2px 4.3px, 6.2px 3.2px);
    margin-left: 4px;
  }

  .next_page:after,
  .previous_page:before {
    background-color: currentColor;
    content: "";
    display: inline-block;
    height: 16px;
    vertical-align: text-bottom;
    width: 16px;
  }
}
